package com.hsurosy.domain.activity.service.product;

import com.hsurosy.domain.activity.model.entity.SkuProductEntity;
import com.hsurosy.domain.activity.repository.IActivityRepository;
import com.hsurosy.domain.activity.service.IRaffleActivitySkuProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Hsu琛君珩
 * @Date 2024-11-26 13:12
 * @Description sku商品服务
 * @Version: v1.0.0
 */
@Service
public class RaffleActivitySkuProductService implements IRaffleActivitySkuProductService {

    @Resource
    private IActivityRepository activityRepository; // 活动仓储

    /**
     * 根据活动ID查询SKU商品实体列表
     *
     * @param activityId 活动ID
     * @return 商品实体列表
     */
    @Override
    public List<SkuProductEntity> querySkuProductEntityListByActivityId(Long activityId) {
        return activityRepository.querySkuProductEntityListByActivityId(activityId);
    }

}
